package com.libs.utils;

import com.libs.sys.model.Userseat;
import com.libs.sys.service.UserseatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * @author yzr07
 */
@Component
public class UserSeatUtils {
    @Autowired
    private UserseatService userseatService;
    private static UserSeatUtils userSeatUtils;

    @PostConstruct
    public void init(){
        userSeatUtils = this;
        userSeatUtils.userseatService = this.userseatService;
    }

  public static List<Userseat> getUserSeatList(){

      List<Userseat> list = userSeatUtils.userseatService.list(0, 15).getRecords();
//      List<Userseat> list = new ArrayList<>();
//      list.add(new Userseat("18037110","070010","100455730"));
//      list.add(new Userseat("19037002","284529","100456091"));
//      list.add(new Userseat("18037105","200010","100455732"));
//      list.add(new Userseat("18037109","131819","100455727"));
//      list.add(new Userseat("18037106","226119","100456007"));
//      list.add(new Userseat("18009053","201554","100455729"));
      return list;
  }

}
